<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?
//=====================================================
$path = '../Mkart/';
include($path."common.php");
include($path."prod_fun.php");
//=====================================================
$oid = $_GET['oid'] ;

$sql = "select * from kart_order where order_id = '$oid' " ;
$result = mysql_query($sql) ;
$row = mysql_fetch_object($result) ;
$shop_code = $row -> order_type ;
$shop_amount = $row -> order_price ;

//=====================================================
echo "<form method=post action=\"https://ecpay.com.tw/form_Sc_to5.php\">" ;
echo "<table width=100% border=1 align=center>" ;
echo "<input type=hidden name=act value=\"auth\">" ;
echo "<input type=hidden name=client value=\"$shop_code\">" ;
echo "<input type=hidden name=roturl value=\"http://office.finpo.com.tw/joomla/Mkart/order_roturl.php\">" ;
echo "<input type=hidden name=bk_posturl value=\"http://office.finpo.com.tw/joomla/Mkart/order_bk.php\">" ;

echo "<tr>" ;
echo "<td align=right width=15%>訂單編號:</td>" ;
echo "<td align=left><input type=text name=od_sob value=\"$oid\"></td>" ;
echo "</tr>" ;

echo "<tr>" ;
echo "<td align=right width=15%>總價:</td>" ;
echo "<td align=left><input type=text name=amount value=\"$shop_amount\"></td>" ;
echo "</tr>" ;

echo "<tr>" ;
echo "<td align=left colspan=2><input name=action type=submit value='確定送出'></td>" ;
echo "</tr>" ;

echo "</table>" ;



?>